﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace MotorcycleMIS.Models
{
    public class Motorcycle
    {
        public Guid Id;//这个ID作为主键
        public string Name { get; set; }
        public decimal Price { get; set; }
        public string Description { get; set; }
        public string Url { get; set; }
        public string Gerne { get; set; }
        public string Brand { get; set; }
        public string Country { get; set; }
        public DateTime ProductionDate { get; set; }
        public Motorcycle()
        {
            this.Id = Guid.NewGuid();
            this.ProductionDate = DateTime.Now;
            this.Price = 0.00M;
        }
        public Motorcycle(Motorcycle model)
        {
            this.Id = model.Id;
            this.Name = model.Name;
            this.Price = model.Price;
            this.Description = model.Description;
            this.Url = model.Url;
            this.Gerne = model.Gerne;
            this.Brand = model.Brand;
            this.Country = model.Country;
            this.ProductionDate = model.ProductionDate;
        } 
        

    }
}
